package models;

import java.util.Date;

import siena.Column;
import siena.Id;
import siena.Index;
import siena.Model;

public class MensagemMT extends Model {
	@Id
	public Long oid;

	@Column("destination")
	@Index("destination_index")
	String destination;

	@Column("dateTime")
	Date dateTime;

	@Column("content")
	String content;

	public MensagemMT() {
		this.dateTime = new Date();
	}

	public String getDestination() {
		return destination;
	}

	public void setDestination(String destination) {
		this.destination = destination;
	}

	public Long getOid() {
		return oid;
	}

	public void setOid(Long oid) {
		this.oid = oid;
	}

	public Date getDateTime() {
		return dateTime;
	}

	public void setDateTime(Date dateTime) {
		this.dateTime = dateTime;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
}
